package com.amazon.ags.client.leaderboards;

import com.amazon.ags.api.ErrorCode;
import com.amazon.ags.api.leaderboards.GetScoresResponse;
import com.amazon.ags.api.leaderboards.Score;
import com.amazon.ags.client.RequestResponseImp;
import com.amazon.ags.constants.ScoreFormat;
import java.util.Arrays;
import java.util.List;

public class GetScoresResponseImp extends RequestResponseImp
  implements GetScoresResponse
{
  private String displayText;
  private String leaderboardId;
  private String leaderboardName;
  private int numScores;
  private ScoreFormat scoreFormat;
  private List<Score> scores;

  public GetScoresResponseImp(int paramInt, ErrorCode paramErrorCode)
  {
    super(paramInt, paramErrorCode);
    this.scores = null;
    this.numScores = 0;
  }

  public GetScoresResponseImp(Score[] paramArrayOfScore, String paramString1, ScoreFormat paramScoreFormat, String paramString2, String paramString3, int paramInt)
  {
    super(paramInt);
    this.scores = Arrays.asList(paramArrayOfScore);
    this.numScores = this.scores.size();
    this.displayText = paramString1;
    this.scoreFormat = paramScoreFormat;
    this.leaderboardName = paramString2;
    this.leaderboardId = paramString3;
  }

  public final String getDisplayText()
  {
    return this.displayText;
  }

  public final int getEventType()
  {
    return 7;
  }

  public final String getLeaderboardId()
  {
    return this.leaderboardId;
  }

  public final String getLeaderboardName()
  {
    return this.leaderboardName;
  }

  public final int getNumScores()
  {
    return this.numScores;
  }

  public final ScoreFormat getScoreFormat()
  {
    return this.scoreFormat;
  }

  public final List<Score> getScores()
  {
    return this.scores;
  }

  public final String toString()
  {
    String str1 = super.toString();
    String str2 = str1 + "\n numScores: " + this.numScores;
    String str3 = str2 + "\n displayText: " + this.displayText;
    String str4 = str3 + "\n dataFormat: " + this.scoreFormat;
    String str5 = str4 + "\n leaderboardName: " + this.leaderboardName;
    return str5 + "\n leaderboardID: " + this.leaderboardId;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.amazon.ags.client.leaderboards.GetScoresResponseImp
 * JD-Core Version:    0.6.2
 */